Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Adding Devbox pools and schedules#24

Merged
arnaudlh merged 12 commits intomicrosoft:mainfrom
arnaudlh:devboxpools
Jun 27, 2025
Merged

Adding Devbox pools and schedules#24
arnaudlh merged 12 commits intomicrosoft:mainfrom
arnaudlh:devboxpools

Conversation

@arnaudlh
Copy link
Copy Markdown
Collaborator

@arnaudlh arnaudlh commented Jun 19, 2025

This pull request introduces comprehensive updates to Terraform code and documentation, focusing on Azure DevCenter module enhancements, best practices, and new configurations. The changes include detailed implementation guidelines, example configurations, and module updates to ensure compatibility with the latest API version and improved usability. Below are the most important changes grouped by theme:

Documentation Enhancements

  • .github/copilot-instructions.md: Added instructions for writing/updating Terraform code and documenting changes in CHANGELOG.md. Includes guidance on categorizing changes (bug fix, feature, improvement) and assessing breaking changes.
  • .github/instructions/devbox-tf.instructions.md: Introduced detailed Terraform implementation guidelines, including provider constraints, repository structure, variable typing, and security best practices. Added examples and validation patterns to ensure code quality.

Module Updates

Configuration Examples

Change Log Updates

  • CHANGES_SUMMARY.md: Documented recent changes, including merge conflict resolutions, TFLint compliance fixes, and updates to the test runner for dynamic discovery and initialization. Ensured all modules pass validation without warnings.

MCP Server Configuration

  • .vscode/mcp.json: Added GitHub MCP server configuration to integrate with Copilot for advanced automation.

arnaudlh added 10 commits June 16, 2025 19:41
- Upgrade azurecaf provider version to 1.2.29.
- Enhance SKU configuration to support both simple name and full object.
- Introduce os_storage_type variable for OS disk configuration.
- Simplify hibernate_support to a boolean value.
- Enable schema validation for azapi resource.
- Add new outputs for image validation status and details.
- Create comprehensive unit tests for Dev Box Definition module.
- Update README with test coverage and instructions.
- Introduced a new Terraform module for managing Azure DevCenter project pool schedules.
- Implemented features including flexible schedule types (StopDevBox, StartDevBox), time zone support, and state management.
- Added comprehensive variable validation for time formats, types, and states.
- Included automatic merging of global and resource-specific tags.
- Integrated with the AzAPI provider using the latest Azure API preview version.
- Created README documentation with usage examples, requirements, and validation details.
- Developed unit tests for the new module to ensure functionality and correctness.
- Resolve conflict in tests/run_tests.sh by keeping dynamic test discovery
- Merge changes from upstream main including updates to:
  - .devcontainer/devcontainer.json
  - .vscode/mcp.json
  - README.md
  - docs/getting_started.md
@arnaudlh arnaudlh changed the title Devboxpools Adding Devboxpools Jun 19, 2025
@arnaudlh arnaudlh linked an issue Jun 19, 2025 that may be closed by this pull request
@arnaudlh arnaudlh requested review from Copilot and raffertyuy and removed request for Copilot June 19, 2025 08:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for DevCenter project pools and separate scheduling, including new root variables, module invocations, module code, and updated test discovery.

  • Added root variables for dev_center_project_pools and dev_center_project_pool_schedules and removed an unused environment types variable
  • Instantiated the new dev_center_project_pool and dev_center_project_pool_schedule modules in dev_center_project_pools.tf and dev_center_project_pool_schedules.tf
  • Created the schedule module (modules/dev_center_project_pool_schedule) and enhanced tests/run_tests.sh with dynamic test discovery and root initialization

Reviewed Changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated 3 comments.

File Description
variables.tf Defined dev_center_project_pools & dev_center_project_pool_schedules; removed unused variable; added regions to global settings
dev_center_project_pools.tf Instantiates dev_center_project_pool module
dev_center_project_pool_schedules.tf Instantiates dev_center_project_pool_schedule module
modules/dev_center_project_pool_schedule/module.tf Implements schedule resource, using fixed "default" name

Comment thread modules/dev_center_project_pool_schedule/module.tf
Comment thread dev_center_project_pools.tf Outdated
Comment thread variables.tf Outdated
@arnaudlh arnaudlh changed the title Adding Devboxpools Adding Devbox pools and schedules Jun 19, 2025
@arnaudlh arnaudlh requested a review from LaurentLesle June 24, 2025 12:16
arnaudlh and others added 2 commits June 24, 2025 19:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@arnaudlh arnaudlh self-assigned this Jun 24, 2025
@arnaudlh arnaudlh merged commit bde6340 into microsoft:main Jun 27, 2025
18 checks passed
@arnaudlh arnaudlh deleted the devboxpools branch June 27, 2025 01:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevCenter - Add support for Dev Center Project Pools

3 participants